package com.monkeyk.sos.service;

import java.util.List;

import com.monkeyk.sos.domain.dto.CooperDetailsDto;
import com.monkeyk.sos.domain.model.CooperDetails;
import com.monkeyk.sos.domain.model.ResourceDetail;
import com.monkeyk.sos.domain.user.User;
import com.monkeyk.sos.util.Pager;

public interface CooperService {
	CooperDetailsDto getCooperDetailsDto(String cooperName);
	User findUserByCooperName(String cooperName);
	void saveCooper(CooperDetails cooper);
	CooperDetails findCooperDetailByCooperName(String cooperName);
	void updateCooperDetail(CooperDetails cooperDetails);
	List<ResourceDetail> getResource();
	void updateStatus(int status,String cooperId);
	boolean checkCooper(String cooperName);
	boolean checkCooperPhone(String phone);
	//List<Resource> getResource();
    //得到所有的合作者总数
    int getAllCooperDetailsTotals();
    //根据条件获取合作者信息
    List<CooperDetails> getSelectedCooperDetailsList(CooperDetails cooperDetails,Pager pagingInfo);
}
